﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using NHibernate.Context;

namespace DocuServe.Data.Context
{
    internal class CallSessionContextManager : ISessionContextManager
    {
        #region ISessionContextManager Members
        public void Bind(ISession session)
        {
            CallSessionContext.Bind(session);
        }

        public bool HasBind(ISessionFactory sessionFactory)
        {
            return CallSessionContext.HasBind(sessionFactory);
        }

        public void Unbind(ISessionFactory sessionFactory)
        {
            CallSessionContext.Unbind(sessionFactory);
        }
        #endregion
    }
}
